<?php
if($_SESSION['admin'] == ''){//检测是否登录
	$_SESSION = array();
	session_destroy();
	echo '<script type="text/javascript">location.href="login.php";</script>';
	exit();
}
?>